package com.dongdong.service;

import com.dongdong.pojo.*;
import com.dongdong.vo.OrderVO;

import java.util.List;

public interface OrderService {
    List<TbAddress> selectOne(String username);

    List<TbProvinces> selectTwo();

    List<TbCities> selectThree();

    List<TbAreas> selectFour();

    List<TbAddress> adressGetInfo(String username);

    int deleteById(Long id);

    List<TbProvinces> selectProvinces();

    List<TbCities> getClist(String province);

    List<TbAreas> getAlareasList(String areaid);

    List<TbCities> getCityByPid(String provinceid);

    List<TbAreas> getAreasCityid(String cityid);

    boolean insert(TbAddress tbAddress);

    int deleteByIdS(Long id);

    List<TbProvinces> selectProvincesList();

    TbAddress getAddressById(Long id);

    void insertTbOrder(TbOrder tbOrder);

    void insertOrderItem(TbOrderItem orderItem);

    void updateInfo(String out_trade_no, String trade_no);

    void updateByOrderItem(String out_trade_no, String trade_no);

    void insertPayLog(TbPayLog payLog);
   //订单编号列表
    void selectOrderByOutTradeNo(String out_trade_no);

    List<OrderVO> findOrderSend(TbUser user);

    void insertOrderAndItem(String wiDout_trade_no, String wiDsubject, String wiDtotal_amount, long l1, long l2);

    void updateByOutTrdateNo(String out_trade_no, String trade_no);
}
